//
//  AViewController.m
//  MainProject
//
//  Created by casa on 2016/12/10.
//  Copyright © 2016年 casa. All rights reserved.
//

#import "AViewController.h"
#import <B_Category/CTMediator+B.h>


@interface AViewController ()

@property (nonatomic, strong) UIButton *pushBViewControllerButton;

@end

@implementation AViewController

#pragma mark - life cycle
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"A模块";
   
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    
    [button setTitle:@"go_BProject" forState:UIControlStateNormal];
    [button addTarget:self action:@selector(go_BProject) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:button];
    button.frame = CGRectMake(0, 0, 100, 50);
    button.center = self.view.center;
    
    
}



- (void)go_BProject {
    
    UIViewController *viewController = [[CTMediator sharedInstance] B_viewControllerWithContentText:@"hello, world!"];
    [self.navigationController pushViewController:viewController animated:YES];
}

@end
